package com.bzyd.mp.datascope;

/**
 * 数据权限上下文持有器
 */
public class DataScopeContextHolder {

    private static final ThreadLocal<DataScopeParam> thread = new ThreadLocal<>();

    public static void set(DataScopeParam dataScopeParam) {
        thread.set(dataScopeParam);
    }

    public static DataScopeParam get() {
        return thread.get();
    }

    public static void remove() {
        thread.remove();
    }
}
